<?php
include('../src/lib/class.smarttemplate.php');
include('../src/imarty.php');
$i = 0;
while($i < 10){
	$array[$i][] = rand(0, 60);
	$array[$i][] = rand(0, 60);
	$array2[$i][] = rand(0, 60);
	$array2[$i][] = rand(0, 60);
	++$i;
}
$tpl = new SmartTemplate('tpl.tpl');
$tpl->assign('rand', $array);
$tpl->assign('rand2', $array2);
ob_start();
$tpl->output();
$xml = ob_get_contents();
ob_end_clean();
	
$imarty = new imarty($xml, true);
$imarty->render();
$imarty->output_image('gif');
?>